﻿<%@ Page Language="C#" MasterPageFile="~/Shared/DialogPage.Master" AutoEventWireup="true" CodeBehind="WorkItemPartAdd.aspx.cs" Inherits="Microsoft.JCI.Portal.Dispatch.WorkItemPartAdd" %>
<%@ Register assembly="RadInput.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../Content/global.css" />
    <link rel="stylesheet" type="text/css" href="../Content/Dialog/Dialogs.css" />
<script type="text/javascript">
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function CloseWindow() {
        var oWindow = GetRadWindow();
        oWindow.Argument = '';
        oWindow.Close();
    }

    function SaveAndCloseWindow() {
        var oWindow = GetRadWindow();
        oWindow.Argument = 'changed';
        oWindow.Close();
    }

    function SaveAndCloseWindow1(arg) {
        var oWindow = GetRadWindow();
        oWindow.Argument = arg;
        oWindow.Close();
    }
    function Save(BudgetVersionId) {
        alert('Save successfully'); 
         var arg = new Array();
            arg[0] = BudgetVersionId;
            SaveAndCloseWindow1(arg);
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" cellspacing="0" cellpadding="0" height="100%">
            <tr>
                <td class="main">
                    <table width="100%" cellspacing="0" cellpadding="0" height="100%"> 
                        <tr>
                            <td class="wizBox1">
                            <table width="100%">
                            <colgroup>
                            <col width="100" />
                            <col />
                            </colgroup>
                            <tr><td>零件名称</td><td><asp:TextBox ID="txtPartName" runat="server" CssClass="input"></asp:TextBox></td></tr>
                            <tr><td>零件编号</td><td><asp:TextBox ID="txtPartCode" runat="server" CssClass="input"></asp:TextBox></td></tr>
                            <tr><td>数量</td><td>
                                <rad:RadNumericTextBox ID="txtCount" Runat="server">
                                </rad:RadNumericTextBox>
                                </td></tr>
                            </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr height="40">
                <td class="buttons">
                    <asp:Button ID="btnOK" runat="server" Text="保 存" Style="width: 70px;" CssClass="button" OnClick="btnOK_Click" /> 
                    <button style="width: 70px;" onclick="CloseWindow();" type="button" class="button">取 消</button>
                </td>
            </tr>
        </table>
</asp:Content>
